package com.itcast.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itcast.entity.PageResult;
import com.itcast.entity.QueryPageBean;
import com.itcast.service.OrderService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：hongwuyang
 * @date ：2022/4/26 10:08
 * @description：预约列表
 */
@RestController
@RequestMapping("/order")
public class OrderController {
    @Reference
    OrderService orderService;
    @RequestMapping("/findByPageAndCondition")
    public PageResult findPage(@RequestBody QueryPageBean queryPageBean){
        return orderService.findPage(queryPageBean);
    }
}
